﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using CalcClassLibrary;
using CalcClassLibrary.Model;


namespace CalculatorConsole
{
    class Program
    {
        static void Main(string[] args)
        {
            MainCalculator calculator = new MainCalculator();
            CalModel data1 = new CalModel();
            CalModel data2 = new CalModel("Div");

            data1.IntegerValue1 = 20;
            data1.IntegerValue2 = 0;
            data1.Operation = "Div";

            calculator.Data = data1;

            try
            {
                result = calculator.Calculate();
            }
            catch (Exception ex)
            {
                Console.WriteLine("An Exception occurred : " + ex.Message);
            }
        
        }

    }
}
